﻿using System;
using SharpSqlAnalyzer.nodes;
using SharpSqlAnalyzer.nodes.postgresql;

namespace SharpSqlAnalyzer.stmt.postgresql
{
	// Token: 0x02000127 RID: 295
	public class TMoveStmt : TCustomSqlStatement
	{
		// Token: 0x0600096E RID: 2414 RVA: 0x00303541 File Offset: 0x00301741
		public TMoveStmt() : this(EDbVendor.dbvpostgresql)
		{
		}

		// Token: 0x0600096F RID: 2415 RVA: 0x0030354B File Offset: 0x0030174B
		public TMoveStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstpostgresqlMove;
		}

		// Token: 0x06000970 RID: 2416 RVA: 0x00303560 File Offset: 0x00301760
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TMoveSqlNode tmoveSqlNode = (TMoveSqlNode)this.rootNode;
			this.cursorName = tmoveSqlNode.CursorName;
			this.moveCount = tmoveSqlNode.MoveCount;
			return 0;
		}

		// Token: 0x170001A5 RID: 421
		// (get) Token: 0x06000971 RID: 2417 RVA: 0x003035A4 File Offset: 0x003017A4
		// (set) Token: 0x06000972 RID: 2418 RVA: 0x003035AC File Offset: 0x003017AC
		public virtual TConstant MoveCount
		{
			get
			{
				return this.moveCount;
			}
			set
			{
				this.moveCount = value;
			}
		}

		// Token: 0x170001A6 RID: 422
		// (get) Token: 0x06000973 RID: 2419 RVA: 0x003035B5 File Offset: 0x003017B5
		// (set) Token: 0x06000974 RID: 2420 RVA: 0x003035BD File Offset: 0x003017BD
		public virtual TObjectName CursorName
		{
			get
			{
				return this.cursorName;
			}
			set
			{
				this.cursorName = value;
			}
		}

		// Token: 0x06000975 RID: 2421 RVA: 0x003035C6 File Offset: 0x003017C6
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000976 RID: 2422 RVA: 0x003035D6 File Offset: 0x003017D6
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001245 RID: 4677
		private TObjectName cursorName;

		// Token: 0x04001246 RID: 4678
		private TConstant moveCount;
	}
}
